package com.mzpai.product.service.impl;
import com.mzpai.product.model.StoreBrand;
import com.mzpai.service.impl.BaseServiceImpl;
import com.mzpai.product.service.StoreBrandService;
import com.mzpai.product.mapper.StoreBrandMapper;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
/**
 *
 * <b>商品品牌 | Service</b><br>
 *
 * yanglijun 2021-03-16 18:48:49
 * 
 *  @version 1.0.0
 *
 */
@Service
public class StoreBrandServiceImpl extends BaseServiceImpl<StoreBrand> implements StoreBrandService {

	Logger logger = LoggerFactory.getLogger(StoreBrand.class);

	@Autowired 
	private StoreBrandMapper mapper;

	@Override
	public StoreBrand queryByBrandCode(String brandCode) {
		StoreBrand storeBrand=mapper.queryByBrandCode(brandCode);
		return storeBrand;
	}

	@Override
	public StoreBrand queryByPrimaryId(Integer brandId) {
		StoreBrand storeBrand=mapper.queryByPrimaryId(brandId);
		return storeBrand;
	}

	@Override
	public void deleteByBrandCode(String brandCode) {
		mapper.deleteByBrandCode(brandCode);
	}
}